package com.ohs.bll.dto;

import com.ohs.dal.model.Location;

public class SearchResultDTO {
	private Long locationId;
	private String name;
	private String username;
	private String address;
	private String imageUrl;
	private String info;
	private String doctorName;
	private String specialties;
	private Boolean turnOnBooking;
	private String latLng;

	public SearchResultDTO(Location location) {
		this.locationId = location.getLocationId();
		this.name = location.getName();
		this.address = location.getAddress()  + ", " + location.getProvince().getName();
		this.imageUrl = location.getImageUrl();
		this.info = location.getInfo();
		this.latLng = location.getLatitudes() + "," + location.getLongitudes();
		if (location.getAccount() != null) {
			this.username = location.getAccount().getUsername();
		}
	}

	public Long getLocationId() {
		return locationId;
	}

	public void setLocationId(Long locationId) {
		this.locationId = locationId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public Boolean getTurnOnBooking() {
		return turnOnBooking;
	}

	public String getLatLng() {
		return latLng;
	}

	public void setLatLng(String latLng) {
		this.latLng = latLng;
	}

	public void setTurnOnBooking(Boolean turnOnBooking) {
		this.turnOnBooking = turnOnBooking;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public String getDoctorName() {
		return doctorName;
	}

	public void setDoctorName(String doctorName) {
		this.doctorName = doctorName;
	}

	public String getSpecialties() {
		return specialties;
	}

	public void setSpecialties(String specialties) {
		this.specialties = specialties;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
}
